From: Eli Zaretskii Date: Sat, 10 Sep 2011 15:23:25 +0000 (+0300) Subject: Prevent sluggish bidi redisplay in small windows. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~2343 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=1ddee258b4a672f2718607229fb7c0628b5646ce;p=emacs.git Prevent sluggish bidi redisplay in small windows. src/xdisp.c (MAX_DISP_SCAN): Decrease to 250. Prevents sluggish redisplay in small windows. --- diff --git a/src/ChangeLog b/src/ChangeLog index b22b9f0bdd3..e58c1f05e2f 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2011-09-10 Eli Zaretskii + + * xdisp.c (MAX_DISP_SCAN): Decrease to 250. Prevents sluggish + redisplay in small windows. + 2011-09-09 Eli Zaretskii * frame.c (x_report_frame_params): Cast to avoid compiler warnings. diff --git a/src/xdisp.c b/src/xdisp.c index 52d88e89521..4d6f7a81cd7 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -3132,9 +3132,9 @@ next_overlay_change (EMACS_INT pos) } /* How many characters forward to search for a display property or - display string. Enough for a screenful of 100 lines x 50 - characters in a line. */ -#define MAX_DISP_SCAN 5000 + display string. Searching too far forward makes the bidi display + sluggish, especially in small windows. */ +#define MAX_DISP_SCAN 250 /* Return the character position of a display string at or after position specified by POSITION. If no display string exists at or